package com.xbongbong.paas.pojo.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import com.xbongbong.paas.toolbox.wrap.QueryIgnore;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author guohui.zhang
 * @Title:
 * @date 2020/11/517:21
 */
@Getter
@Setter
@ToString
public class CustomerMergeDTO extends BaseDTO {

    private static final long serialVersionUID = 1086232143607601860L;
    /**
     * 应用id
     */
    @NotNull(message = "{dto.msg.appId.NotNull}")
    private Long appId;

    @NotNull(message = "{dto.msg.menuId.NotNull}")
    private Long menuId;
    @NotNull(message = "{dto.msg.formId.NotNull}")
    private Long formId;
    /**
     * 要删除的id
     */
    @NotNull(message = "{dto.msg.CustomerMergeDTO.delId.NotNull}")
    private Long delId;
    /**
     * 主客户id
     */
    @NotNull(message = "{dto.msg.CustomerMergeDTO.updateId.NotNull}")
    private Long updateId;


    /**
     * 业务类型
     */
    @Getter(onMethod_ = {@QueryIgnore})
    @NotNull(message = "{dto.msg.CustomerMergeDTO.businessType.NotNull}")
    private Integer businessType;
    /**
     * 子业务类型
     */
    @Getter(onMethod_ = {@QueryIgnore})
    @NotNull(message = "{dto.msg.CustomerMergeDTO.subBusinessType.NotNull}")
    private Integer subBusinessType;

    /**
     *  updateAttr
     */
    @NotNull(message = "{dto.msg.CustomerMergeDTO.updateAttr.NotNull}")
    private List<String> updateAttr;
}
